package com.lmk;

import java.util.Scanner;

public class CustomerBiz {
    private  Customer[]  customers=new Customer[5];
    private  int size;

    public CustomerBiz() {

    }



    public void addCustomer( Customer cust){
        if(size==customers.length){
            System.out.println("数组已满");
            return;
        }
       customers[size++]=cust;
    }
    public void showCustomer(){
        for (int i=0;i<size;i++) {
            Customer c=customers[size];
            System.out.println(c.getName()+"\t"+c.getAge()+"\t"+c.getVip());

        }
    }
}
